package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.DefectiveProduct;
import com.weixing.mall.provider.model.enums.DefectiveProductEunm;
import com.weixing.mall.provider.model.query.DefectiveProductAppQuery;
import com.weixing.mall.provider.model.query.DefectiveProductQuery;
import com.weixing.mall.provider.model.vo.DefectiveProductAppVo;
import com.weixing.mall.provider.model.vo.DefectiveProductVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 仓库模块-次品库商品表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface DefectiveProductMapper extends BaseMapper<DefectiveProduct> {

    IPage<DefectiveProductVo> selectListOfPage(@Param("pg") Page page, @Param("qs")DefectiveProductQuery defectiveProductQuery);

    IPage<DefectiveProductAppVo> selectDefectiveProductList(@Param("pg") Page page,@Param("qs")DefectiveProductAppQuery defectiveProductAppQuery);

    DefectiveProductAppVo selectDefectiveProductById(long id);

}
